package com.rerun.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.rerun.common.util.JsonDateFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * The type Evaluate.
 */
@TableName("evaluate")
public class Evaluate extends Model<Evaluate> {


  private static final long serialVersionUID = -3692014282279699776L;
  @TableId(type = IdType.UUID)
  private String id;
  private String memberId;
  private String parkId;
  private String evaluateContent;
  @JsonSerialize(using=JsonDateFormat.class)
  private Date createTime;
  private long level;
  

  /**
   * Gets id.
   *
   * @return the id
   */
  public String getId() {
    return id;
  }

  /**
   * Sets id.
   *
   * @param id the id
   */
  public void setId(String id) {
    this.id = id;
  }


  /**
   * Gets member id.
   *
   * @return the member id
   */
  public String getMemberId() {
    return memberId;
  }

  /**
   * Sets member id.
   *
   * @param memberId the member id
   */
  public void setMemberId(String memberId) {
    this.memberId = memberId;
  }


  /**
   * Gets park id.
   *
   * @return the park id
   */
  public String getParkId() {
    return parkId;
  }

  /**
   * Sets park id.
   *
   * @param parkId the park id
   */
  public void setParkId(String parkId) {
    this.parkId = parkId;
  }


  /**
   * Gets evaluate content.
   *
   * @return the evaluate content
   */
  public String getEvaluateContent() {
    return evaluateContent;
  }

  /**
   * Sets evaluate content.
   *
   * @param evaluateContent the evaluate content
   */
  public void setEvaluateContent(String evaluateContent) {
    this.evaluateContent = evaluateContent;
  }


  /**
   * Gets create time.
   *
   * @return the create time
   */
  public Date getCreateTime() {
    return createTime;
  }

  /**
   * Sets create time.
   *
   * @param date the date
   */
  public void setCreateTime(Date date) {
    this.createTime = date;
  }

  /**
   * Gets level.
   *
   * @return the level
   */
  public long getLevel() {
    return level;
  }

  /**
   * Sets level.
   *
   * @param level the level
   */
  public void setLevel(long level) {
    this.level = level;
  }

  @Override
  protected Serializable pkVal() {
    return this.id;
  }

  @Override
  public String toString() {
    return "{" +
            "id:" + id +
            ", memberId:" + memberId +
            ", parkId:" + parkId +
            ", evaluateContent:" + evaluateContent +
            ", createTime:" + createTime +
            ", level:" + level +
            '}';
  }
}
